package arsmodeller.commands;

import org.eclipse.gef.commands.Command;

import arsmodeller.model.ObjectProcessingDiagram;
import arsmodeller.model.Thing;

public class ThingDeleteCommand extends Command{
	private Thing thing;
	private ObjectProcessingDiagram opd;

	@Override
	public void execute() {
		thing.setOpd(null);
	}

	@Override
	public void undo() {
		thing.setOpd(opd);
	}

	public void setThing(Thing thing) {
		this.thing = thing;
		this.opd = thing.getOpd();
	}
}
